<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <script type="text/javascript">
    $(function(){
    	$("#list").click(function(){
    		location.href="getListboard.do";
    	});//click
    	$("#update").click(function(){
    		location.href="updateTtBoardView.do?no=${requestScope.bvo.no}";
    	});//click
    	$("#delete").click(function(){
    		if(confirm("삭제하시겠습니까?") ){	
    			location.href="deleteBoard.do?no=${requestScope.bvo.no}&id=${sessionScope.mvo.id}";
    		}//comfirm  		
    	});//click
    	$("#moveBorad").click(function(){
    		if(confirm("해당게시물을 QnA게시판으로 옭기시겠습니까?") ){	
    			location.href="moveBorad.do?no=${requestScope.bvo.no}&id=${sessionScope.mvo.id}";
    		}//comfirm  moveBorad  		
    	});//click
    });//function
    </script>
글번호:${requestScope.bvo.no }
종류:${requestScope.bvo.category }
작성일 :${requestScope.bvo.writedate }
조회수 : ${requestScope.bvo.count }
작성자 :${requestScope.bvo.memberVO.id}
<hr>
<h1>${requestScope.bvo.title }</h1> 
<hr>
${requestScope.bvo.content }
<hr>
<input type="button" value="목록" id="list">
<c:if test="${sessionScope.mvo!=null}">
	<c:if test="${sessionScope.mvo.id==requestScope.bvo.memberVO.id}">
<input type="button" value="수정" id="update">
<input type="button" value="삭제" id="delete">
	</c:if>
</c:if>
<c:if test="${sessionScope.mvo.grade==0}">
	<input type="button" value="게시물옮기기" id="moveBorad">
</c:if>




